﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    CodeFile="UsersManager.aspx.cs" Inherits="UserManage_UsersManager" Title="用户管理" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderContent" runat="Server">
    <div style="text-align: center">
        <table>
            <tr>
                <td>
                    用户ID：<asp:TextBox ID="userid" runat="server"></asp:TextBox>&nbsp;&nbsp; 用户名：<asp:TextBox
                        ID="username" runat="server"></asp:TextBox>&nbsp;&nbsp;
                    <asp:Button Text="查询" ID="btnQuery" runat="server" OnClick="btnQuery_Click" /><br />
                </td>
            </tr>
            <tr>
                <td>
                    <defineControls:CustomGridView ShowItemNumber="True" AutoGenerateColumns="False" ID="CustomGridView1"
                        runat="server" AllowPaging="True" SkinID="List" CustomSortExpression="" ShowCmpAndCancel="False"
                        ShowHideColModel="None" Width="100%" OnOnLoadData="CustomGridView1_OnLoadData"
                        OnRowCreated="CustomGridView1_RowCreated" AllowOnMouseOverEvent="True" AutoGenerateDeleteConfirm="True"
                        AllowSortingAscImgCss="" AllowSortingDescImgCss="">
                        <Columns>
                            <asp:BoundField DataField="USERID" HeaderText="用户ID" />
                            <asp:BoundField DataField="USERNAME" HeaderText="用户名" />
                            <asp:BoundField DataField="TEL" HeaderText="联系电话" />
                            <asp:BoundField DataField="ADDRESS" HeaderText="地址" />
                            <asp:TemplateField HeaderText="查看" ShowHeader="false">
                                <itemtemplate>
                        <asp:HyperLink ID="hlView" runat="server" >查看</asp:HyperLink>                    
                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="编辑" runat="server">
                                <itemtemplate>
                        <asp:HyperLink ID="hlEdit" runat="server" >编辑</asp:HyperLink>                    
                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除" ShowHeader="false">
                                <itemtemplate>
                        <asp:HyperLink ID="hlDel" runat="server" >删除</asp:HyperLink>                    
                    </itemtemplate>
                            </asp:TemplateField>
                        </Columns>
                    </defineControls:CustomGridView>
                </td>
            </tr>
        </table>
        <div>
            <asp:Button ID="btnAdd" runat="server" Text="添加用户" OnClick="btnAdd_Click" />
        </div>
    </div>
</asp:Content>
